package com.qf.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.*;

/**
 * @Author Zhy
 * Date on 2020/10/12  18:17
 * @description
 */
/*
### Registration【患者挂号表】

挂号单号(202010111211),患者编号(外键),医生工号(外键),
接诊类型(初诊-复诊),接诊时间(自动添加),挂号员(自动添加),
挂号费(可选0-10元),诊疗费(可选),应收金额(元),实收金额(元),就诊状态(未就诊-已就诊-已退号),
registId,patientId,empId,
acceptType,times,registrar,
copay,consultationFee,receivable,actualAmount,states,
 */
@Entity
@Data
@Table(name = "registration")
public class Registration {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "registid")
    private String registId;
    @Column(name = "patientid")
    private String patientId;
    private String empId;
    @Column(name = "accepttype")
    private String acceptType;
    private String times;
    private String registrar;
    private String copay;
    @Column(name = "consultationfee")
    private String consultationFee;
    private Double receivable;
    @Column(name = "actualamount")
    private Double actualAmount;
    private String states;

    @Transient
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Patient patient;

    @Transient
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Employee employee;
}
